// 注册相关的接口
import instance from "@/utils/request";

// 验证手机号是否被注册过
export function docheckphoneaApi(data) {
    return instance({
        method: 'post',
        url: '/api/user/docheckphone',
        data: data
    })
}

// 发送验证码接口
export function sendCodeApi(data) {
    return instance({
        method: 'post',
        url: '/api/user/dosendmsgcode',
        data: data
    })
}

// 验证手机验证码
export function docheckcodeApi(data) {
    return instance({
        method: 'post',
        url: '/api/user/docheckcode',
        data: data
    })
}

// 注册接口
export function finishregisterApi(data) {
    return instance({
        method: 'post',
        url: '/api/user/dofinishregister',
        data: data
    })
}

